]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
StIcon: remove implementation of ::map and ::unmap
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 9 Dec 2010 16:59:58 +0000 (17:59 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 9 Dec 2010 21:27:11 +0000 (22:27 +0100)
They're not needed since Clutter 1.5.8, which internally
keeps a list of children, used by the default implementations of
::map and ::unmap.

https://bugzilla.gnome.org/show_bug.cgi?id=634814

src/st/st-icon.c

index 8b2ae02f8cfe23e97c4254064791db309a3f32ec..9cf2993a74412d7e42a2eeeeafca6a19d19ed8be 100644 (file)
@@ -272,28 +272,6 @@ st_icon_paint (ClutterActor *actor)
     }
 }
 
-static void
-st_icon_map (ClutterActor *actor)
-{
-  StIconPrivate *priv = ST_ICON (actor)->priv;
-
-  CLUTTER_ACTOR_CLASS (st_icon_parent_class)->map (actor);
-
-  if (priv->icon_texture)
-    clutter_actor_map (priv->icon_texture);
-}
-
-static void
-st_icon_unmap (ClutterActor *actor)
-{
-  StIconPrivate *priv = ST_ICON (actor)->priv;
-
-  CLUTTER_ACTOR_CLASS (st_icon_parent_class)->unmap (actor);
-
-  if (priv->icon_texture)
-    clutter_actor_unmap (priv->icon_texture);
-}
-
 static void
 st_icon_style_changed (StWidget *widget)
 {
@@ -325,8 +303,6 @@ st_icon_class_init (StIconClass *klass)
   actor_class->get_preferred_width = st_icon_get_preferred_width;
   actor_class->allocate = st_icon_allocate;
   actor_class->paint = st_icon_paint;
-  actor_class->map = st_icon_map;
-  actor_class->unmap = st_icon_unmap;
 
   widget_class->style_changed = st_icon_style_changed;